import request from '@/utils/request'

export function getroutes() {
  return request({
    url: '/site/getroutes',
    method: 'get'
  })
}

export function getPermissions() {
  return request({
    url: '/site/permissions_list',
    method: 'get'
  })
}

export function getList() {
  return request({
    url: '/permission/list',
    method: 'get'
  })
}

export function store(params) {
  return request({
    url: '/permission/store',
    method: 'post',
    params
  })
}

export function del(params) {
  return request({
    url: '/permission/delete',
    method: 'post',
    params
  })
}

